<?php
include_once('../classes/connector.php');
new connectorok();
mysql_query("SET NAMES 'utf8'");
$result=mysql_query("select * from gallery_config") or die(mysql_error()); 
while($row=mysql_fetch_array($result)){
echo "<option value='$row[id]'>".$row['galleryname']."</option>";  
}
?>